package com.wowudi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wowudi.entity.UserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wowudi.mapper.RoleMenuMapper;
import com.wowudi.entity.RoleMenu;
import com.wowudi.service.RoleMenuService;
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu> implements RoleMenuService{

    @Autowired
    private RoleMenuMapper roleMenuMapper;

    /**
    * Description: 根据id查询<br/>
    * date: 2022-3-25<br/>
    * @author 贺同志<br/>
    */
    @Override
    public List<RoleMenu> findUserRoleById(Integer id) {
        List<RoleMenu> roleMenuList = roleMenuMapper.selectAllByRoleId(id);
        return roleMenuList;
    }
}
